==================================================================================================
Matlab codes to (set) identify the economies of scale and indidivual RICEB measures as discussed in
"Marital matching, economies of scale and intrahousehold allocations" 
by Laurens Cherchye, Bram De Rock, Khushboo Surana and Frederic Vermeulen. 
==================================================================================================

* Bounds on economies of scale and individual RICEBs can be obtained by using the matlab code 'main.m'. It uses the selected sample as input ('psid_cleaned_onlycouples.mat'). 
* This script uses two matlab function.
* 1)'get_divorce_costs.m' which computes the minimum divorce costs needed to rationalize the data. 
* 2)'get_scale.m' uses the outputs of 'get_divorce_costs.m' and gives the bounds on economies of scale and individual RICEBS. 
* The results are stored in file 'psid_results_onlycouples'. This file (exported to stata) will be used in the third step (analysis). 